<?php
include_once './inc/config_inc.php';
include_once './inc/mysql_inc.php';
include_once './inc/tool_inc.php';
include_once './inc/page_inc.php';
$link=connect();
$user_id=is_login($link);

$query="select count(*) from words";
$count_all=num($link, $query);

$template['title']='碎言碎语页';
$template['css']=array('style/public.css','style/words.css');
?>
<?php include 'inc/header_inc.php';?>

<!--碎言碎语-->
<div id="word">
	<a href="index.php" style="font-size: 17px;font-family: 微软雅黑;color: black;">首页</a> &gt; <span style="font-size: 17px;font-family: 微软雅黑;">碎言碎语</span>
	<div class="pages">
			<?php 
			$page=page($count_all,6);
			echo $page['html'];
			?>
	</div>
	<?php 
	$query="select * from words order by sort asc {$page['limit']}";
	$result=execute($link,$query);
	while($data=mysqli_fetch_assoc($result)){
		$data['content']=htmlspecialchars($data['content']);
	?>
		<div class="yu">
			<img src="style/5.jpeg" >
			<div class="yu1"><?php echo $data['content'] ?></div>
			<div class="yu2">浏览：<?php echo $data['times']?>&nbsp;&nbsp;&nbsp;&nbsp;发布时间：<?php echo $data['create_time'] ?></div>
		</div>
	<?php } ?>
</div>

<?php include 'inc/footer_inc.php';?>